<template>
  <div>
    <p>我是父亲组件:{{ coo }}</p>
    <son :foo="foo" v-on:upRocket="receiveRocket" />
  </div>
</template>

<script>
import Son from '@views/sys/comp/Son.vue'
export default {
  name: 'SysLog',
  components: {
    Son
  },
  data () {
    return {
      foo: '我是父组件传到孙子组件的值',
      coo: '我是父组件原本的值'
    }
  },
  created () {
    console.log(this)
  },
  methods: {
    receiveRocket (data) {
      this.coo = data.changeName
    }
  }
}
</script>